<div class="se-wb has-cl">
  <span class="se-name">筛选条件：</span>
  <div class="se-wv">
    <?php if($sA)foreach($sA as $v) echo '<span>'. htmlq($v['n']) .'<a href="'. htmlq($v['u']) .'">x</a></span>';?>
  </div>
</div>
<div class="se-gb">
 <div class="se-g has-cl">
   <span class="se-name">分类：</span>
   <div class="w-option-b">
	<?php 
    if($sortNav){ echo '<div class="sort-nav">';foreach($sortNav as $v){ echo '<span>&gt;</span><a href="'. $u_sort . $v['id'].'">'. htmlq($v['name']) .'</a>'; } echo '</div>';}
	if($sortR)foreach($sortR as $v){
        echo '<label class="se-option"><input type="checkbox"/><a href="'. $u_sort . $v['id'].'" >'. htmlq($v['name']) .'</a></label>';
    }
    ?>
   </div>
 </div>

 <?php if($companyR){?>
 <div class="se-g has-cl">
   <span class="se-name">品牌：</span>
   <div class="se-option-b">
	<?php foreach($companyR as $v)echo '<label class="se-option"><input type="checkbox"/><a href="'. $u_comp . $v['id'].'" >'. htmlq($v['name']) .'</a></label>';?>
   </div>
 </div>
 <?php }?>
</div>

<div class="list-head no-line">
    <div class="price-w"><form action="<?php e_h(url::p('p'))?>" method="post">价格：<input type="text" value="<?php echo $moneyA[0];?>" name="money[]" placeholder="￥">-<input type="text" value="<?php echo $moneyA[1];?>" name="money[]" placeholder="￥"><button type="submit" class="hSubmit" title="提交">&gt;</button></form></div>
  <div class="order-b"><a href="<?php echo $u_order?>" <?php if($order_col=='')echo 'class="active"'?>>默认排序</a><a href="<?php echo $u_order?>money&LO[way]=ASC" <?php if($order_col=='money')echo 'class="active"'?>>价格低到高</a><a href="<?php echo $u_order?>sales" <?php if($order_col=='sales')echo 'class="active"'?>>销量高到低</a><a href="<?php echo $u_order?>hits" <?php if($order_col=='hits')echo 'class="active"'?>>人气高到低</a></div>
  
  <div class="page">
  <?php 
	if ($paging=$this->db->paging){ 
	$page_url = htmlq(url::p('p'));
	$limit_url= htmlq(url::p('limit&p'));
	?>
  <a <?php echo $paging['p']>1 ? 'href="'. $page_url .($paging['p']-1).'"' : 'class="ban"';?> title="上翻">&lt;</a><?php echo $paging['p'];?><a <?php echo $paging['p']<$paging['pages'] ? 'href="'. $page_url .($paging['p']+1).'"' : 'class="ban"';?> title="下翻">&gt;</a>
  <?php }?>
  </div>
</div>

<div class="list-box has-cl">
  <?php foreach($res as $v){ $v=$this->analyse($v, 15);?>
  <div class="li-item">
    <a href="<?php e_h($v['url']);?>" title="<?php e_h($v['title'])?>" target="_blank" class="pic"><img src="<?php e_h($v['pic']);?>&w=222&h=220!.jpg" /></a>
    <p><span class="price">￥<?php echo $v['money']?></span></p>
    <p><a href="<?php e_h($v['url']);?>" class="tit"><?php e_h($v['url_title'])?></a></p>
  </div>
  <?php }?>
</div>

<?php $this->loadTemplate('paging');?>